<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">    <link rel="stylesheet" href="css/project/ui-list-v3.css">
    <link rel="stylesheet" href="css/project/ui-res-v3.css">
    <link rel="stylesheet" href="css/project/ui-input-v3.css">
    <link rel="stylesheet" href="css/project/ui-btn-v3.css">
    <link rel="stylesheet" href="css/project/ui-color-v3.css">
    <link rel="stylesheet" href="css/ui-box.css">
	<link rel="stylesheet" href="css/ui-base.css">
	<link rel="stylesheet" href="css/ui-input.css">
	<link rel="stylesheet" href="css/cleaning.css">
	
	<script src="js/jquery-1.9.1.min.js"></script>
	<script src="js/zy_control.js"></script>
    <script src="js/zy_click.js"></script>
	<script src="js/talkingdata.js"></script>
</head>
<body class=" " ontouchstart>
    <!--块容器开始-->
<div class="ub ub-ver">
	<!--第一区域-->
    <div class=" ub-f1 b-gra uinn  ulev-b" >
    	<!--第一行-->
		<div class="c-gra touming2" style="padding:0.5em 0.3em 0.5em 0.3em">
		<div class="ub t-bla" >
		    <div class="ub ub-ac " style="width:17%">航班日期</div>
		    <div class="" style="width:30%" >
				<!--块容器开始-->
				<div class="ub t-bla c-wh" >
				    <div class="ub-f1  uc-l1">
				    	<div class="ub-f1 uinput ub ub-ac " id="dateOpen" style="padding:0.5em 0 0.5em 0.3em;margin:0;">
					       <div class="date cu " id="startDate">0000-00-00</div>
					    </div>
				    </div>
				    <div class="ub ub-ac ub-pc ">
				    	 <img src="css/images/2_03.png" style="width:1em;height:1em;margin-right:0.4em">
				    </div>
				</div>
				<!--块容器结束-->

		    </div>
			<div class="" style="width:5%"></div>
			<div class="ub ub-ac" style="width:17% " >航班号</div>
		    <div class=" ub ub-ver " style="width:30%">
		    	<div class="ub t-bla">
					<div class="ub t-bla">
					    <div class="ub-f1 ub uba c-wh b-gra sel">
					        <div class="ub-f1 uinn ulev-1 tx-l t-gra ulh-sel" style="width:2em">MU</div>
					        <div class="c-06 ub ub-pc ub-ac">
					            <div class="ub-img umw1 umh1 res3"></div>
					        </div>
					        <select name="sel0" selectedindex="0" id="carrier" onchange="zy_selectmenu(this.id)">
					            <option value="MU">MU</option>
					        </select>
					    </div>
					</div>
					<!--下拉列表结束-->
					    <div class="ub-f1 c-wh uinput uinn3">
					        <input placeholder="" type="text" id="flightNo" class="uc-a1">
					    </div>
				</div>
		    </div>
		</div>
	<!--第2行-->
	<div class="ub t-bla " style="padding-top:1em">
		    <div class="ub ub-ac" style="width:17%">机号</div>
		    <div class="" style="width:30%">
				<div class="c-wh uba b-gra uinput uinn3">
				    <input placeholder="" type="text" id="acNo" class="uc-a1">
				</div>
		    </div>
			<div class="" style="width:5%"></div>
			<div class="ub ub-ac" style="width:17% ">机型</div>
		    <div class=" ub ub-ver uba" style="width:30%">
		    	<div class="c-wh uba b-gra uinput uinn3">
				    <input placeholder="" type="text" id="acType" class="uc-a1">
				</div>
		    </div>
		</div>
			<!--第3行-->
	<div class="ub t-bla " style="padding-top:1em">
		    <div class="ub ub-ac	" style="width:17%">起飞站</div>
		    <div class="" style="width:30%">
				<div class="c-wh uba b-gra uinput uinn3">
				    <input placeholder="" type="text" id="depPort" class="uc-a1">
				</div>
		    </div>
			<div class="" style="width:5%"></div>
			<div class="ub ub-ac" style="width:17% ">到达站</div>
		    <div class=" ub ub-ver uba" style="width:30%">
		    	<div class="c-wh uba b-gra uinput uinn3">
				    <input placeholder="" type="text" class="uc-a1">
				</div>
		    </div>
		</div>
			<!--第4行-->
	<div class="ub t-bla " style="padding-top:1em">
		    <div class="ub ub-ac	" style="width:17%">桥位</div>
		    <div class="" style="width:30%">
				<div class="c-wh uba b-gra uinput uinn3">
				    <input placeholder="" type="text" class="uc-a1">
				</div>
		    </div>
			<div class="" style="width:5%"></div>
			<div class="ub ub-ac" style="width:17% ">航班类型</div>
		    <div class=" ub ub-ver uba" style="width:30%">
		    	<div class="c-wh uba b-gra uinput uinn3">
				    <input placeholder="" type="text" class="uc-a1">
				</div>
		    </div>
		</div>
		</div>
    </div>
	<!--第二区域-->
    <div class=" ub-f1 b-gra uinn" >
    	<!--块容器开始-->
		<div class="ub b-gra  t-bla" >
		    <div class=" c-wh " style="width:70%">
		    		<!--列表开始-->
					<div class="">
					    <ul  class="uc-t ub t-bla  lis" id="cardiv">
					        <li id="addImg" class="lis-th ub-img Img" style="width:30%;height:4.5em;" onclick="openMeun()"></li>
					    </ul>
					</div>
					<!--列表结束-->
		    </div>
			<div style="width:5%"></div>
		    <div class="uba " style="height:5.2em;width:25%" >
		    	<!--文本输入开始-->
				    <textarea placeholder="备注"  style="height:100%;width:100%"></textarea>
				<!--文本输入结束-->
		    </div>
		</div>
		<!--块容器结束-->
    </div>
	<!--第三区域-->
    <div class=" ub-f3 uinn uc-b1 ulev-1">
    	<!--第一行-->
        <div class="ub  t-bla">
            <div class="ub ub-ac  uc-l1" style="width:10%">
            	<!--复选框开始-->
				<input type="checkbox" name="che1" class="uhide" checked="checked" value="">
				<div onclick="zy_for(event)" ontouchstart="zy_touch('btn-act')" class="ub uc-a1 t-bla">
				    <div class="che-icon ub-img umw2 umh4"></div>
				</div>
				<!--复选框结束-->
            </div>
            <div class="ub ub-ac" style="width:15%">
                                      厨房
            </div>
            <div class="ub ub-ac" style="width:20%">
            	<!--文本输入开始-->
				<div class="c-gra uba b-gra uinput uinn3 uc-a1" >
				    <input placeholder="" type="text" class="uc-a">
				</div>
				<!--文本输入结束-->
            </div>
			<div style="width:10%"></div>
             <div class="ub ub-ac ub-pc  uc-l1" style="width:10%">
             	<!--复选框开始-->
				<input type="checkbox" name="che1" class="uhide" checked="checked" value="">
				<div onclick="zy_for(event)" ontouchstart="zy_touch('btn-act')" class="ub uc-a1 t-bla">
				    <div class="che-icon ub-img umw2 umh4"></div>
				</div>
				<!--复选框结束-->
            </div>
            <div class="ub ub-ac" style="width:15%">
                                      厕所
            </div>
            <div class="" style="width:20%">
            		<!--文本输入开始-->
				<div class="c-gra uba b-gra uinput uinn3 uc-a1">
				    <input placeholder="" type="text" class="uc-a1">
				</div>
				<!--文本输入结束-->
             </div>
        </div>
        <!--块容器结束-->
       <!--第2行-->
        <div class="ub  t-bla" style="padding-top:1em">
            <div class=" ub ub-ac  uc-l1" style="width:10%">
            	<!--复选框开始-->
				<input type="checkbox" name="che1" class="uhide" checked="checked" value="">
				<div onclick="zy_for(event)" ontouchstart="zy_touch('btn-act')" class="ub uc-a1 t-bla">
				    <div class="che-icon ub-img umw2 umh4"></div>
				</div>
				<!--复选框结束-->
            </div>
            <div class=" ub ub-ac" style="width:15%">
                                   舱门
            </div>
            <div class="  " style="width:20%">
            	<!--文本输入开始-->
				<div class="c-gra uba b-gra uinput uinn3 uc-a1" >
				    <input placeholder="" type="text" class="uc-a1">
				</div>
				<!--文本输入结束-->
            </div>
			<div style="width:10%"></div>
             <div class=" ub ub-ac ub-pc  uc-l1" style="width:10%">
             	<!--复选框开始-->
				<input type="checkbox" name="che1" class="uhide" checked="checked" value="">
				<div onclick="zy_for(event)" ontouchstart="zy_touch('btn-act')" class="ub uc-a1 t-bla">
				    <div class="che-icon ub-img umw2 umh4"></div>
				</div>
				<!--复选框结束-->
            </div>
            <div class=" ub ub-ac" style="width:15%">
                                      座椅
            </div>
            <div class="  " style="width:20%">
            		<!--文本输入开始-->
				<div class="c-gra uba b-gra uinput uinn3 uc-a1">
				    <input placeholder="" type="text" class="uc-a1">
				</div>
				<!--文本输入结束-->
             </div>
        </div>
        <!--块容器结束-->
		<!--第3行-->
        <div class="ub  t-bla" style="padding-top:1em">
            <div class=" ub ub-ac  uc-l1" style="width:10%">
            	<!--复选框开始-->
				<input type="checkbox" name="che1" class="uhide" checked="checked" value="">
				<div onclick="zy_for(event)" ontouchstart="zy_touch('btn-act')" class="ub uc-a1 t-bla">
				    <div class="che-icon ub-img umw2 umh4"></div>
				</div>
				<!--复选框结束-->
            </div>
            <div class=" ub ub-ac" style="width:40%">
                                    机组休息室衣帽间
            </div>
            <div class="  " style="width:20%">
            	<!--文本输入开始-->
				<div class="c-gra uba b-gra uinput uinn3 uc-a1" >
				    <input placeholder="" type="text" class="uc-a1">
				</div>
				<!--文本输入结束-->
            </div>
        </div>
        <!--块容器结束-->
		<!--第4行-->
        <div class="ub  t-bla" style="padding-top:1em">
            <div class=" ub ub-ac  uc-l1" style="width:10%">
            	<!--复选框开始-->
				<input type="checkbox" name="che1" class="uhide" checked="checked" value="">
				<div onclick="zy_for(event)" ontouchstart="zy_touch('btn-act')" class="ub uc-a1 t-bla">
				    <div class="che-icon ub-img umw2 umh4"></div>
				</div>
				<!--复选框结束-->
            </div>
            <div class=" ub ub-ac  ulev-1" style="width:15%">
                                      地面(毯)
            </div>
            <div class="  " style="width:20%">
            	<!--文本输入开始-->
				<div class="c-gra uba b-gra uinput uinn3 uc-a1" >
				    <input placeholder="" type="text" class="uc-a1">
				</div>
				<!--文本输入结束-->
            </div>
			<div style="width:10%"></div>
             <div class=" ub ub-ac ub-pc  uc-l1" style="width:10%">
             	<!--复选框开始-->
				<input type="checkbox" name="che1" class="uhide" checked="checked" value="">
				<div onclick="zy_for(event)" ontouchstart="zy_touch('btn-act')" class="ub uc-a1 t-bla">
				    <div class="che-icon ub-img umw2 umh4"></div>
				</div>
				<!--复选框结束-->
            </div>
            <div class=" ub ub-ac" style="width:15%">
                                   板壁                      
            </div>
            <div class="  " style="width:20%">
            		<!--文本输入开始-->
				<div class="c-gra uba b-gra uinput uinn3 uc-a1">
				    <input placeholder="" type="text" class="uc-a1">
				</div>
				<!--文本输入结束-->
             </div>
        </div>
        <!--块容器结束-->
		<!--第5行-->
        <div class="ub  t-bla" style="padding-top:1em">
            <div class=" ub ub-ac  uc-l1" style="width:10%">
            	<!--复选框开始-->
				<input type="checkbox" name="che1" class="uhide" checked="checked" value="">
				<div onclick="zy_for(event)" ontouchstart="zy_touch('btn-act')" class="ub uc-a1 t-bla">
				    <div class="che-icon ub-img umw2 umh4"></div>
				</div>
				<!--复选框结束-->
            </div>
            <div class=" ub ub-ac" style="width:15%">
                                      舷窗
            </div>
            <div class="  " style="width:20%">
            	<!--文本输入开始-->
				<div class="c-gra uba b-gra uinput uinn3 uc-a1" >
				    <input placeholder="" type="text" class="uc-a1">
				</div>
				<!--文本输入结束-->
            </div>
			<div style="width:10%"></div>
             <div class=" ub ub-ac ub-pc  uc-l1" style="width:10%">
             	<!--复选框开始-->
				<input type="checkbox" name="che1" class="uhide" checked="checked" value="">
				<div onclick="zy_for(event)" ontouchstart="zy_touch('btn-act')" class="ub uc-a1 t-bla">
				    <div class="che-icon ub-img umw2 umh4"></div>
				</div>
				<!--复选框结束-->
            </div>
            <div class=" ub ub-ac" style="width:15%">
                                     天花板
            </div>
            <div class="  " style="width:20%">
            		<!--文本输入开始-->
				<div class="c-gra uba b-gra uinput uinn3 uc-a1">
				    <input placeholder="" type="text" class="uc-a1">
				</div>
				<!--文本输入结束-->
             </div>
        </div>
        <!--块容器结束-->
		<!--第5行-->
        <div class="ub  t-bla" style="padding-top:1em">
            <div class=" ub ub-ac  uc-l1" style="width:10%">
            	<!--复选框开始-->
				<input type="checkbox" name="che1" class="uhide" checked="checked" value="">
				<div onclick="zy_for(event)" ontouchstart="zy_touch('btn-act')" class="ub uc-a1 t-bla">
				    <div class="che-icon ub-img umw2 umh4"></div>
				</div>
				<!--复选框结束-->
            </div>
            <div class=" ub ub-ac" style="width:15%">
                                      行李架
            </div>
            <div class="  " style="width:20%">
            	<!--文本输入开始-->
				<div class="c-gra uba b-gra uinput uinn3 uc-a1" >
				    <input placeholder="" type="text" class="uc-a1">
				</div>
				<!--文本输入结束-->
            </div>
			<div style="width:10%"></div>
             <div class=" ub ub-ac ub-pc  uc-l1" style="width:10%">
             	<!--复选框开始-->
				<input type="checkbox" name="che1" class="uhide" checked="checked" value="">
				<div onclick="zy_for(event)" ontouchstart="zy_touch('btn-act')" class="ub uc-a1 t-bla">
				    <div class="che-icon ub-img umw2 umh4"></div>
				</div>
				<!--复选框结束-->
            </div>
            <div class=" ub ub-ac" style="width:15%">
                                      显示屏
            </div>
            <div class="  " style="width:20%">
            		<!--文本输入开始-->
				<div class="c-gra uba b-gra uinput uinn3 uc-a1">
				    <input placeholder="" type="text" class="uc-a1">
				</div>
				<!--文本输入结束-->
             </div>
        </div>
        <!--块容器结束-->
    </div>
	<div class="uc-b1 par-t" style="padding-bottom:0.8em">
		    	<!--按钮开始-->
				<div class="ub btn ub-pc ">            
				    <div class="uba uinn ub ub-ac t-wh ">提&nbsp;&nbsp;交</div>             
				</div>
				<!--按钮结束-->
		    </div>
</div>
<!--块容器结束-->


    
</body>
<script>
zy_init();
window.uexOnload=function(type)
{
	IC.talkingDataCount("客舱深度清洁","0021");
	//弹出选择相片菜单回调
　　　		uexWindow.cbActionSheet = actionSheetSuccess;
　　　		uexWidgetOne.cbError = function(opCode,errorCode,errorInfo){
　　　			//alert("errorCode:" + errorCode + "\n"+"errorInfo:" + errorInfo);
			}
			
			//相机回调函数
			uexCamera.cbOpen = openCameraCallback;
			uexWidgetOne.cbError= function(inOpId,inErrorCode,inErrorDes){
			}
			//本地相册回调函数
			uexImageBrowser.cbPick = function(opId,dataType,data){
			if(dataType==0){
	                imgUrlArray.push(data);
					var imgIndex=imgUrlArray.length-1;
					createImgDiv(imgIndex);
					document.getElementById("img"+imgIndex).src=data;
//					document.getElementById("img" + imgIndex).onclick = function(){
//						preview(data);
//					}
				}
			}
	
}

/* ***************图片操作*************** */
//本地相片地址
var imgurl = "";
//本地相片地址数组
var imgUrlArray = [];
//本地图片标识
var j = 0;
//上传成功图片地址
var imgserverpath = "";
//服务器返回的图片名称和地址
var returnFiles = [];
//上传成功图片名称
var imgservername = "";
//控制重复提交的标志
var doubleclick = false;
//图片总数，每上传一次，总数减一
var urlArrayLength = 0;
//图片对象
var imgObjArray = [];
//上传标识
var i = 0;

function openMeun(){
	IC.talkingDataCount("客舱深度清洁","0021");
    var as = new Array(2);
    as[0] = "拍照";
    as[1] = "从相册选择";
	
	uexWindow.actionSheet("选择图片","取消",as);	
}

function actionSheetSuccess(opId, dataType, data){
    if (data == "0") {
        uexCamera.open('0', '50');
    }
    if (data == "1") {
        uexImageBrowser.pick();
    }
       
}
function openCameraCallback(opId, dataType, data){
    if (dataType == 0) {
        imgUrlArray.push(data);
        var imgIndex = imgUrlArray.length - 1;
        createImgDiv(imgIndex);
        document.getElementById("img" + imgIndex).src = data;
        //				document.getElementById("img" + imgIndex).onclick = function(){
        //						preview(data);
        //					}
    }
} 
//存放图片的div
function createImgDiv(id){
	IC.talkingDataCount("客舱深度清洁","0021");
	var idex = $("#cardiv div").length;
	if(idex==2){
		$("#addImg").remove();
	}
    var appendImgDiv = '<li class="lis-th ub-img uba" style="width:30%;height:4em">' +
    '<img id=img' +
    id +
    ' src="" style="width:100%;height:100%;" onclick="preview(this.src)"/>' +
    ' <div class="deleteImg ub-img  " style="top:-4.5em;right:-1.5em;z-index:1;position:relative;" onclick="deleteImg(this)">&nbsp;</div>' +
    '</li>'
    $("#cardiv").prepend(appendImgDiv);
}

//删除选中的图片
			function deleteImg(obj){
				IC.talkingDataCount("客舱深度清洁","0021");
				var idex = $("#cardiv div").length;
				if(idex==3){
					 $("#cardiv").append(' <li id="addImg" class="lis-th ub-img Img" style="width:30%;height:4.5em;" onclick="openMeun()"></li>');
				}
				$(obj).parent().remove();
			}
/* ***************图片操作结束*************** */

var iG = {};
iG.versionNo = '202020';
iG.debug = false;
/* 操作数据
---------------------------------------------------------------------------------------*/
//AJAX请求
/* 操作日期
---------------------------------------------------------------------------------------*/
//获取年
iG.getYear = function(date){
    if(date == undefined) date = new Date;
    return date.getFullYear();
};
//获取月
iG.getMonth = function(date){
    if(date == undefined) date = new Date;
    var month = date.getMonth() + 1;
    if(month < 10) month = "0" + month;
    return month;
};
//获取日
iG.getDay = function(date){
   if(date == undefined) date = new Date;
    var day = date.getDate();
    if(day < 10) day = "0" + day;
    return day;
};
//获取当前日期
iG.getDateToday = function(date){
    return iG.getYear() + "-" + iG.getMonth() + "-" + iG.getDay();
};
//获取星期
iG.getWeek = function(date){
    if(date == undefined) date = new Date;
    var week = date.getDay();
    var weekArr = ["日","一","二","三","四","五","六"];
    return weekArr[week];
};
//获取小时
iG.getHours = function(date){
    if(date == undefined) date = new Date;
    return date.getHours();
},
//获取分钟
iG.getMinutes = function(date){
    if(date == undefined) date = new Date;
    return date.getMinutes();
};
//打开日期控件
iG.openDate = function(year,month,day,callback){
    uexControl.openDatePicker(year,month,day);
    uexControl.cbOpenDatePicker=function(opCode,dataType,data){
        if(dataType==1){
            data = JSON.parse(data);
            if(data.month<10) data.month = "0" + data.month;
            if(data.day<10) data.day = "0" + data.day;
            var json = {
                year : data.year,
                month : data.month,
                day : data.day,
            };
            callback(json);
        }
    }   
};
//打开时间控件
iG.openTime = function(hours,minutes,callback){
    uexControl.openTimePicker(hours,minutes);
    uexControl.cbOpenTimePicker = function(opCode,dataType,data){  
        data = JSON.parse(data);
        if(data.hour < 10) data.hour = "0" + data.hour;
        if(data.minute < 10) data.minute = "0" + data.minute;
        var json = {
            hour : data.hour,
            minute : data.minute
        };
        callback(json);
    }   
};


//检查每月最后一天是几号
iG.checkLastDay = function(year,month){
    var maxDays = 31;
    if(month == 2){
        if(parseInt(year)%4 == 0)maxDays = 29;
        else maxDays = 28;
    }
    if(month == 4 || month == 6 || month == 9 || month == 11)
        maxDays = 30;
    return month + "-" + maxDays;
};


	var iP = {};
	//页面初始化
	iP.init = function(){
	    //初始化->开始日期
	    iP.initialDate();
	    //绑定->日期控件
	    $("#dateOpen").on("click",iP.openDate); 
	};
	iP.initialDate = function(){     
	    //初始化->开始日期
	    var newdate=new Date();
	    var newtimems=newdate.getTime();
	    newdate.setTime(newtimems);
	    iP.setDate($("#startDate"),iG.getYear(newdate),iG.getMonth(newdate),iG.getDay(newdate));
	};
	//打开日期控件
	iP.openDate = function(){
	    var that = $("#startDate");
	    var date = JSON.parse(that.attr("date"));
	    iG.openDate(date.year,date.month,date.day,function(data){
	        iP.setDate(that,data.year,data.month,data.day);
	    })
	};
	//设置日期、星期
	iP.setDate = function(elem,year,month,day){
	    var json = {
	        "year" : year,
	        "month" : month,
	        "day" : day,
	    }
	    elem.text(year + "-" + month + "-" + day);
	    elem.attr("date",JSON.stringify(json));
	    elem.attr("need",year + "-" + month + "-" + day);
		var today=year + "-" + month + "-" + day;
		var zuo=getDay(-1);
		var jin=getDay(0);
		var ming=getDay(1);
		if(today==zuo){
			$("#day").text("昨天");
		}else if(today==jin){
			$("#day").text("今天");
		}else if(today==ming){
			$("#day").text("明天");
		}else{
			$("#day").text("");
		}
		
		var weekDay = ["星期天","星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
	    var dateStr = (year + "-" + month + "-" + day);
	    var myDate = new Date(Date.parse(dateStr.replace(/-/g, "/")));
	    $("#week").text(weekDay[myDate.getDay()]); 
		
	};
	function getDay(day){
		IC.talkingDataCount("客舱深度清洁","0021");
		   var today = new Date();
		   var targetday_milliseconds=today.getTime() + 1000*60*60*24*day;        
		   today.setTime(targetday_milliseconds); //注意，这行是关键代码  
		   var tYear = today.getFullYear();
		   var tMonth = today.getMonth();
		   var tDate = today.getDate();
		   tMonth = doHandleMonth(tMonth + 1);
		   tDate = doHandleMonth(tDate);
		   return tYear+"-"+tMonth+"-"+tDate;
	}
	function doHandleMonth(month){
		   var m = month;
		   if(month.toString().length == 1){
		      m = "0" + month;
		   }
		   return m;
	}
	iP.init(); 
	
</script>
</html>